class Women:
    # 私有属性和私有方法只能在类内访问
    def __init__(self, name, age):
        self.name = name
        self.__age = age  # 前面两个下划线 = 私有属性

    def __secret(self):
        print(f'{self.name}年龄是{self.__age}')

    def boy_friend(self):
        self.__secret()


if __name__ == '__main__':
    xiaohong = Women('xiaohong', 18)
    xiaohong.boy_friend()
